%% test pattern fft
txt=zeros(54,98,5292);
x=1:98;
y=1:54;
[x,y]=meshgrid(x,y);
for w=1:529
    txt(:,:,w)=sin(x.*w/1).*sin(y.*w/1+rand());
end

% 
output_fft=zeros(54,98,img_num);
for i=1:img_num
    target=reshape(output(:,i),sizex,sizey).*255;
    output_fft(:,:,i)=fft2(target);
    
end